package edu.stanford.bmir.protege.web.client.ui.ontology.stkos.visualizer.ui;

import java.util.Collection;

import com.gwtext.client.widgets.Tool;

import edu.stanford.bmir.protege.web.client.project.Project;
import edu.stanford.bmir.protege.web.client.rpc.data.EntityData;
import edu.stanford.bmir.protege.web.client.ui.portlet.AbstractOWLEntityPortlet;

/**
 * Stkos Visualizer Portlet
 * 
 */
@SuppressWarnings("unchecked")
public class StkosVisualizerPortlet extends AbstractOWLEntityPortlet {

	private StkosVisualizerView stkosVisualizerView;

	public StkosVisualizerPortlet(Project project) {
		super(project);
	}

	@Override
	public Collection<EntityData> getSelection() {
		return null;
	}

	@Override
	public void reload() {
	}

	@Override
	protected void onRefresh() {
		if (stkosVisualizerView == null) {
			return;
		}
		stkosVisualizerView.onRefresh();
	}

	@Override
	public void initialize() {
		setTitle("本体可视化");
		setPaddings(2);

		stkosVisualizerView = new StkosVisualizerView(getProject());
		add(stkosVisualizerView);
		doLayout();
	}
}
